package demo1;

class Outerclas{
    public int date1 = 1;
    public int date2 = 2;
    public static int data5 = 5;
    class Interclass{
        public int date3 = 3;
        public int date4 = 4;
        public static final int data6 = 6;
        public void test(){
            System.out.println(date3);
            System.out.println(date4);
            System.out.println("内部类test方法");
        }
    }
    public void test(){
        System.out.println(date1);
        System.out.println(date2);
        System.out.println("外部类test方法");
    }
}

public class Test {

    public static void main(String[] args){
        Outerclas outerclas = new Outerclas();
        outerclas.test();

        Outerclas.Interclass interclass = new Outerclas().new Interclass();
        interclass.test();
    }
    //获取内部类




}
